//
//  SearchItem.m
//  liwushuo
//
//  Created by qf1 on 16/4/19.
//  Copyright (c) 2016年 ZJH. All rights reserved.
//

#import "SearchItem.h"

@implementation SearchItem

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.Id = value;
    }else if ([key isEqualToString:@"description"]){
        self.Description = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([value isKindOfClass:[NSNumber class]]) {
        NSString * str = [NSString stringWithFormat:@"%d",[value intValue]];
        [super setValue:str forKey:key];
    }else{
        [super setValue:value forKey:key];
    }
}

@end
